import Vue from "vue";
import Router from "vue-router";

import introduction from "./views/introduction.vue";
import messages from "./views/messages.vue";
import NotFound from "./views/NotFound.vue";

Vue.use(Router);
Router.prototype.goBack = function() {
    this.isBack = true;
    window.history.go(-1);
};
export default new Router({
    mode: "history",
    base: process.env.BASE_URL,
    routes: [
        {
            path: "/introduction",
            name: "introduction",
           
            redirect: "/"
        },

        {
            path: "/",
            name: "root",
           
            component: introduction
        },
        {
            path: "/messages",
            name: "messages",
           
            component: messages
        },
        {
            path: "*",
            name: "404",
            
            component: NotFound
        }
    ],
    linkActiveClass: "actived",
    "eslint-disable": true
});
